package cn.jiyun.user.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

@Data
public class Goods {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String name;
    private String price;
    @TableField(exist = false)
    private Integer num;

    public Goods(Integer id, String name, String price, Integer num) {
        this.id = id;
        this.name = name;
        this.price = price;
        this.num = num;
    }

    public Goods() {
    }
}
